<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>微信JS-SDK Demo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
  <style>
    .btn_primary {
      background-color: #04be02;
    }
</style>
</head>
<body ontouchstart="">
      <button class="btn btn_primary" id="chooseImage">
        选择图片
      </button>

      <form action="{:U('Device/test')}" enctype="multipart/form-data" method="POST">
        <div id="photo"></div>
        <div id="media_id"></div>
        <input type="submit" value="提交"/>
      </form>
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"> </script>
<script src="__JS__/jquery.min.js"></script>
</html>